#coding:utf-8
#from win32com.client import Dispatch
#wmp=Dispatch('WMPlayer.OCX')
#mc.Load(r'F:\kugou\2.mp3')
#mc.Play()
import ctypes
def playmp3(filename):
        shell32 = ctypes.windll.LoadLibrary("winmm.dll")
        shell32.mciSendStringA(r"open %s" % filename,0,0,0)
        shell32.mciSendStringA(r"play %s wait" % filename,0,0,0)
        shell32.mciSendStringA(r"close %s" % filename,0,0,0)